package com.github.glomadrian.materialanimatedswitch.observer;

import java.util.Observable;

/**
 * @author Adrián García Lomas
 */
public class BallFinishObservable extends Observable {
    private BallState state;

    public void setBallState(BallState state) {
        this.state = state;
        setChanged();
        notifyObservers();
    }

    public BallState getState() {
        return state;
    }

    /**
     * 小球当前的状态
     */
    public static enum BallState {
        RELEASE, // RELEASE state
        PRESS, // PRESS state
        MOVE // MOVE state
    }
}
